<template>
    <van-tabbar v-if="$route.meta.tabbarshow"
      z-index="999"
      :fixed="true"
      route
      active-color="var(--cy-Color)"
      inactive-colo="#282828"
    >
      <van-tabbar-item to="/">
        <span>首页</span>
        <template v-slot:icon>
          <i class="fa fa-home" aria-hidden="true"></i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/category" icon="apps-o"
        >分类</van-tabbar-item
      >
      <van-tabbar-item to="/cart" icon="shopping-cart-o"
        >购物车</van-tabbar-item
      >
      <van-tabbar-item to="/user">
        <span>个人中心</span>
        <template #icon>
          <i class="fa fa-user-circle-o" aria-hidden="true"></i>
        </template>
      </van-tabbar-item>
    </van-tabbar>
</template>